package com.ctl.feign;

import com.ctl.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient("USER")
public interface UserClient {
    @GetMapping("/userByuid")
    public User getUser(@RequestParam("uid") Integer uid);
    @GetMapping("/isFollow")
    public Boolean getIsFollow(@RequestParam("uid") Integer uid,@RequestParam("followId") Integer followId);
}
